
//类型判断
export default class O{
    public static IfBoolean(v):boolean{
        return "boolean" == typeof v;
    }

    public static IfNumber(v):boolean{
        return "number" == typeof v;
    }

    public static IfBigIng(v):boolean{
        return "bigint" == typeof v;
    }

    public static IfString(v):boolean{
        return "string" == typeof v;
    }

    public static IfObject(v):boolean{
        return "object" == typeof v;
    }

    public static IfFunction(v):boolean{
        return "function" == typeof v;
    }

    public static IfSymbol(v):boolean{
        return "symbol" == typeof v;
    }

    public static IfUndefined(v):boolean{
        return undefined == v;
    }

    public static IfFloat(v):boolean{
        return O.IfNumber(v) && 0 == v % 1;
    }

    public static IfInteger(v):boolean{
        return O.IfNumber(v) && 0 != v % 1;
    }

    public static IfNull(v):boolean{
        return undefined == v || null == v;
    }
}